{% url 'category-detail-view' post.category.name as category_url %}
{% url 'article-detail-view' post.en_title as article_url %}


<div class="col-md-12 column">
			<div class="row clearfix">
<div class="col-md-2">
 </div>
               
<div class="col-md-8"> 
    <article  class="post">
    <div class=""  style="background:#fff;">

        <h1 class="post-title">
            <div class="post-head">
        <a href="{{article_url}}">{{post.title}}</a>
                </div>
        </h1>
        <div class="post-meta">
            <div style="text-align:center;">
        <span class="visible-xs-inline-block" style="margin-top:7px;">
            {{post.pub_time|date:"Y-m-d H:i"}}
        </span>
            </div>
            </div>

        <!--<div class="post-tags">
            {% for tag in post.get_tags%}
            <a href="{% url 'tag-detail-view' tag %}">
                <span class="label label-vmaig-{{forloop.counter}} btn">{{tag}}</span>
            </a>
            {% endfor %}
        </div>-->
    </div>

    <div class=" post-head">
        <div class="row">           
                <figure class="thumbnail">
                    <a href="{{article_url}}">
                        <img src="{{post.img}}"  height="400" alt="">
                    </a>
                </figure> 
            
            
                <p>
                {% autoescape off%}
                {{post.summary|slice:"200" }}
                {% endautoescape %}
                {% if post.summary|length > 200 %}
                    ...
                {% endif %}
                </p>
            
        </div>
    </div>

    <div class="post-meta">
        <div style="text-align:center;">
        <span>
            <span class="glyphicon glyphicon-calendar"></span>
            {{post.pub_time|date:"Y-m-d" }}
        </span>
        <span>
            <span class="glyphicon glyphicon-comment"></span>
            {{post.comment_set.all | length}}
        </span>
        <span>
            <span class="glyphicon glyphicon-eye-open"></span>
            {{post.view_times}}
        </span>
    </div>
            </article>
</div>


<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<div class="col-md-2 column">
</div>

</div>
</div>

